//
//  checkView.m
//  dddddemo
//
//  Created by lanou3g on 15/11/7.
//  Copyright © 2015年 zhk. All rights reserved.
//

#import "checkView.h"

@implementation checkView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self p_setupView];
    }
    return self;
}

- (void)p_setupView
{
    self.LabelTitle = [[UILabel alloc]initWithFrame:CGRectMake(40, 35, CGRectGetWidth(self.frame) - 80, 0)];
    [self addSubview:self.LabelTitle];
    
    self.LabelDetai = [[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(self.LabelTitle.frame) + 10, CGRectGetWidth(self.frame) - 20, 0)];
    [self addSubview:self.LabelDetai];
    
    self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(self.LabelDetai.frame) + 10, CGRectGetWidth(self.frame) / 3 - 10 , 110)];
    [self addSubview:self.imageView];
    
    self.imageViewTwo = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageView.frame) + 5, CGRectGetMinY(self.imageView.frame), CGRectGetWidth(self.imageView.frame), CGRectGetHeight(self.imageView.frame))];
    [self addSubview:self.imageViewTwo];
    
    self.imageViewThree = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.imageViewTwo.frame) + 5, CGRectGetMinY(self.imageView.frame), CGRectGetWidth(self.imageView.frame), CGRectGetHeight(self.imageView.frame))];
    [self addSubview:self.imageViewThree];
    
    self.luyinBtn = [UIButton buttonWithType:(UIButtonTypeSystem)];
    self.luyinBtn.frame = CGRectMake(CGRectGetMinX(self.imageViewThree.frame) ,CGRectGetMaxY(self.imageView.frame) + 10 , 60, 50) ;
    [self.luyinBtn setTitle:@"播放语音" forState:(UIControlStateNormal)];
    [self.luyinBtn setTitle:@"准备播放" forState:(UIControlStateHighlighted)];
    [self.luyinBtn setTitleColor:[UIColor purpleColor] forState:(UIControlStateHighlighted)];
    [self addSubview:self.luyinBtn];
    
    
}


@end
